import React from 'react';
import {BrowserRouter as Router, Route, Switch} from 'react-router-dom'
import App from '../App';

import Message from '../view/message'
import Login from '../view/login'
import Chat from '../view/chat'
import Test from '../view/test'
import Show from '../view/show'
import Resume from '../view/resume'

const router = (()=>{
    return (
        <Router>
            <Switch>
                <Route path='/' component={Show} exact />

                <Route path="/todo"   exact>
                    <App name='GodenFreeman' />
                </Route>
                
                <Route path="/test" component={Test} />

                <Route path="/message">
                    <Message name='GodenFreeman' />
                </Route>

                <Route path="/login">
                    <Login name='GodenFreeman' />
                </Route>

                <Route path="/chat">
                    <Chat name='GodenFreeman' />
                </Route>

                <Route path='/resume' component={Resume} />

            </Switch>
            
        </Router>
    )
})()

export default router